package com.xindacloud.sms.adapter.service.business.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xindacloud.sms.adapter.dao.SmsErrorCodeMapper;
import com.xindacloud.sms.adapter.entity.SmsErrorCode;
import com.xindacloud.sms.adapter.service.business.ISmsErrorCodeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;


@Slf4j
@Service
public class SmsErrorCodeServiceImpl extends ServiceImpl<SmsErrorCodeMapper, SmsErrorCode> implements ISmsErrorCodeService {

    @Override
    public SmsErrorCode querySmsErrorCodeByErrorTypeAndErrorCode(String errorType, String errorCode) {
        return lambdaQuery()
                .eq(SmsErrorCode::getErrorCode, errorCode)
                .eq(SmsErrorCode::getErrorType, errorType)
                .one();
    }
}
